// const baseUrl = "https://douban-api.uieee.com"
const baseUrl = "https://localhost:80"
export const getInTheaters = (params) => (
	uni.request({
		url: `${baseUrl}/v2/movie/in_theaters`,
		header: {
			"content-type": "json"
		},
		data: params
	})
)

export const comingSoon = (params) => (
	uni.request({
		url: `${baseUrl}/v2/movie/coming_soon`,
		header: {
			"content-type": "json"
		},
		data: params
	})
)
// 新片
export const newMoives = (params) => (
	uni.request({
		url: `${baseUrl}/v2/movie/new_movies`,
		header: {
			"content-type": "json"
		},
		data: params
	})
)

// 新片
export const top250 = (params) => (
	uni.request({
		url: `${baseUrl}/v2/movie/top250`,
		header: {
			"content-type": "json"
		},
		data: params
	})
)

// 电影
export const subject = (id) => (
	uni.request({
		url: `${baseUrl}/v2/movie/subject/${id}`,
		header: {
			"content-type": "json"
		}
	})
)
